package com.org.web.api.unishop.model;

import java.math.BigDecimal;

/**
 * @author duheng
 * @Date 2021/11/11 16:31
 */
public class Merchandise {

	private long id;
	private String image;
	private String attrVal;
	private int stock;
	private String title;
	private BigDecimal price;
	private int number;

	public Merchandise(long id, String image, String attrVal, int stock, String title, String thePrice, int number) {
		this.id = id;
		this.image = image;
		this.attrVal = attrVal;
		this.stock = stock;
		this.title = title;
		this.price = new BigDecimal(thePrice);
		this.number = number;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getAttrVal() {
		return attrVal;
	}

	public void setAttrVal(String attrVal) {
		this.attrVal = attrVal;
	}

	public int getStock() {
		return stock;
	}

	public void setStock(int stock) {
		this.stock = stock;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public int getNumber() {
		return number;
	}

	public void setNumber(int number) {
		this.number = number;
	}
}
